﻿@model KRM.Core.tblTicket
<div class="row-fluid">
    <div class="span3">OrderRef (@Model.RelationOrderRefs.Count())</div>
    <div class="span7">
        <input type="text" id="OrderRef_@Model.TicketID" name="OrderRef" class="input-block-level"  placeholder="Enter OrderRef" value="@Model.OrderRef">
        <div id="ListRelationOrerdRef_@Model.TicketID"style="padding-bottom: 10px;">
            @foreach (var item in Model.RelationOrderRefs)
            {
                <a href="/orderview/orderdetail?OrderRef=@item.Value" target="_blank" style="cursor: pointer" title="View Order">@item.Value ,</a>
            }
        </div>
    </div>
    <div class="span2">
        <a class="btn btn-primary" onclick="AddRelationOrderRef(@Model.TicketID,$('#OrderRef_@Model.TicketID').val())"><i class="icon-plus"></i></a>
    </div>
</div>
<div class="row-fluid">
    <div class="span3">TaskID (@Model.RelationTasks.Count())</div>
    <div class="span7">
        <input type="text" id="TaskID_@Model.TicketID" name="TaskID" class="input-block-level"  placeholder="Enter TaskID" value="">
        <div id="ListRelationTaskID_@Model.TicketID" style="padding-bottom: 10px;">
            @foreach (var item in Model.RelationTasks)
            {
                <a href="#"  onclick="PopupCenter('/orderview/viewtask/' + @item.Value, 600, 540);"
                                       style="cursor: pointer" title="View Order">@item.Value ,</a>
            }
        </div>
    </div>
    <div class="span2">
        <a class="btn btn-primary" onclick="AddRelationTaskID(@Model.TicketID,$('#TaskID_@Model.TicketID').val())"><i class="icon-plus"></i></a>
    </div>
</div>
<div class="row-fluid">
    <div class="span3">RDM Id (@Model.RelationDisputeIds.Count())</div>
    <div class="span7">
        <input type="text" id="DisputeID_@Model.TicketID" name="DisputeID" class="input-block-level" placeholder="Enter DisputeId" value="" />
        <div id="AddRelationDisputeId_@Model.TicketID">
            @foreach (var item in Model.RelationDisputeIds)
            {
                <a href="/rdm/viewrdm/@item.Value" target="_blank" style="cursor: pointer" title="View RDM">@item.Value ,</a>
            }
        </div>
    </div>
    <div class="span2">
        <a class="btn btn-primary" onclick="AddRelationDisputeId(@Model.TicketID,$('#DisputeID_@Model.TicketID').val())"><i class="icon-plus"></i></a>
    </div>
</div>


